package com.ruoyi.am.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调班记录对象 am_roster_log
 * 
 * @author hkkk
 * @date 2020-12-09
 */
public class AmRosterLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 发起者 */
    @Excel(name = "发起者")
    private String fromName;

    /** 被调换者 */
    @Excel(name = "被调换者")
    private String toName;

    /** 发起时间 */
    @Excel(name = "发起时间")
    private String fromDate;

    /** 交换时间 */
    @Excel(name = "交换时间")
    private String todate;

    /** 发起者ID */
    @Excel(name = "发起者ID")
    private Long fromId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromName(String fromName) 
    {
        this.fromName = fromName;
    }

    public String getFromName() 
    {
        return fromName;
    }
    public void setToName(String toName) 
    {
        this.toName = toName;
    }

    public String getToName() 
    {
        return toName;
    }
    public void setFromDate(String fromDate) 
    {
        this.fromDate = fromDate;
    }

    public String getFromDate() 
    {
        return fromDate;
    }
    public void setTodate(String todate) 
    {
        this.todate = todate;
    }

    public String getTodate() 
    {
        return todate;
    }
    public void setFromId(Long fromId) 
    {
        this.fromId = fromId;
    }

    public Long getFromId() 
    {
        return fromId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromName", getFromName())
            .append("toName", getToName())
            .append("fromDate", getFromDate())
            .append("todate", getTodate())
            .append("fromId", getFromId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
